{include file="header" title="YunCMS后台管理系统" keywords="" description=""/}

<div class="content-page">
    <div class="am-container">
        <div class="min-height">
            <div class="page-title"><h1 class="am-inline">分类列表</h1>
                <a href="<?=URL('/admin/category/edit');?>" class="am-btn am-btn-primary am-btn-xs am-radius">
                    <i class="am-icon am-icon-edit"></i>添加分类
                </a>
                <!--<a href="/index.php/admin/category/trash" class="am-btn am-btn-default am-btn-xs am-radius">-->
                    <!--<i class="am-icon-trash"></i>回收站-->
                <!--</a>-->
            </div>
            <form class="am-form-inline search-form">
                {:token()}
                <div class="am-form-group">
                    <select data-am-selected placeholder="选择分类">
                        <option value="all">选择分类</option>
                        <option value="a">未分类</option>
                    </select>
                </div>
                <div class="am-form-group">
                    <input type="keyword" class="am-form-field" placeholder="关键词">
                </div>
                <button type="submit" class="am-btn am-btn-default"><i class="am-icon-search"></i></button>
            </form>
            <table class="am-table">
                <thead>
                <tr>
                    <th>类型编号</th>
                    <th>SEO标题</th>
                    <th>SEO关键字</th>
                    <th>类别名称</th>
                    <th>更新时间</th>
                    <th>创建时间</th>
                    <th>SEOurl</th>
                    <th>更多操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name='category' id='category'}
                <tr>
                    <td>{$category.category_id}</td>
                    <td>{$category.seo_title}</td>
                    <td>{$category.seo_key}</td>
                    <td>{$category.category_name}</td>
                    <td>{$category.update_time}</td>
                    <td>{$category.create_time}</td>
                    <td>{$category.seo_url}</td>
                    <td>
                        <div class="am-btn-group am-btn-group-xs">
                            <!--<a href="#" class="am-btn am-btn-primary am-radius"><i class="am-icon-send"></i></a>-->
                            <a href="<?=URL('/admin/category/edit',array('id'=>$category['category_id']));?>" class="am-btn am-btn-primary am-radius"><i class="am-icon-edit"></i></a>
                            <a href="<?=URL('/admin/category/remove',array('id'=>$category['category_id']));?>" class="am-btn am-btn-primary am-radius"><i class="am-icon-trash"></i></a>
                        </div>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div>
    </div>
</div>
{include file="footer" /}
